import request from "@/utils/request";
const interFace = "/interface";

// 查询接口列表
export function listInterface(data) {
  return request({
    url: `${interFace}/listInterface`,
    method: "post",
    data: data,
  });
}

// 新增接口
export function insertInterface(data) {
  return request({
    url: `${interFace}/insertInterface`,
    method: "post",
    data: data,
  });
}

// 修改接口
export function updateInterface(data) {
  return request({
    url: `${interFace}/updateInterface`,
    method: "post",
    data: data,
  });
}

// 删除接口
export function deleteInterface(data) {
  return request({
    url: `${interFace}/deleteInterface`,
    method: "post",
    data: data,
  });
}
